package com.ux.iot.jetlinks.service.websocket.handler;

import cn.hutool.core.codec.Base64;
import com.ux.iot.core.service.MessageHandlerManager;
import org.springframework.context.ApplicationContext;

/**
 * @author caixiaodao
 * @version 1.0
 * 功能描述
 * 消息管理器
 * @date 2021/11/21 12:15
 */
public class JetlinksMessageHandlerManager extends MessageHandlerManager {
    public JetlinksMessageHandlerManager(ApplicationContext applicationContext) {
        super(applicationContext);
    }

    @Override
    public String getRoute(String topic) {
        String routeStr= Base64.encode(topic);
        return routeStr;
    }
}
